#ifndef VIEWCONTACTDIALOG_H
#define VIEWCONTACTDIALOG_H

#include <QtGui>
#include <qtopiaapplication.h>

#include "neophonebookentry.h"
#include "ui_viewcontactform.h"
#include "accelmanager.h"

class ViewContactDialog : public QWidget, public Ui_ViewContactDialog
{
    Q_OBJECT

    public:
        ViewContactDialog( QWidget *parent=0, Qt::WFlags f = 0 );
		~ViewContactDialog();
        void setupView(NeoPhoneBookEntry *entry);        
		void setSlider(int);

    private:
		bool isCalling;
		void deviceOn(int id);
		void deviceOff(int id);
	
	signals:
		void editContactSignal();
		void deleteContactSignal();
		void callContactSignal();
		void stopCallContactSignal();
		void stateChangeSignal(int state);

	public slots:
		void on_editPushButton_clicked();
		void on_deletePushButton_clicked();
		void on_upPushButton_clicked();
		void on_downPushButton_clicked();
		void on_callPushButton_clicked();
		void vibrationListener(bool pos, int id);
		void audioPlayingListenser(int);
		
		void closeListener(int);
};

#endif
